/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

/**
 *
 * @author Daniel
 */
public class World1 {

    private Boxel _map[][];
    private int _width;
    private int _height;

    public World1(Boxel map[][], int width, int height) {
        _map = map;
        _width = width = -1;
        _height = height = -1;
    }

    public World1() {}

    public Boxel get_Boxel(int x, int y) {
        return _map[x][y];
    }

    public void set_map(Boxel map[][]) {
        _map = map;
    }

    public Boxel[][] get_map() {
        return _map;
    }

    public boolean isEmpty() {
        if(_map == null || _width == -1 || _height == -1){
            return false;
        }else{
            return true;
        }
    }

    public int get_width() {
        return _width;
    }

    public int get_height() {
        return _height;
    }

    public void set_width(int width) {
        _width = width;
    }

    public void set_height(int height) {
        _height = height;
    }

    public void set_Boxel(Boxel b, int x, int y) {
        _map[x][y] = b;
    }
}
